package demo2;

public class Test {
//实现调用从开机到设备的使用到设备的关闭到关机
    public static void main(String[] args) {
        Computer computer = new Computer();
        Mouse mouse = new Mouse();
        KeyBoard keyBoard = new KeyBoard();
        computer.Openco();

        computer.useDevice(mouse);
        computer.useDevice(keyBoard);

        computer.Closeco();
    }
}
